import request from "@/utils/request";

export function buildsFarm(params) {
  return request({
    url: `/pig/farm/buildsFarm`,
    method: "get",
    params,
  });
}

export function birthsRatio(data) {
  return request({
    url: "/pig/farm/birthsRatio",
    method: "post",
    data,
  });
}

export function deadAnalyse(data) {
  return request({
    url: "/pig/farm/deadAnalyse",
    method: "post",
    data,
  });
}

export function boatState() {
  return request({
    url: "/pig/farm/boatState",
    method: "get",
  });
}

export function indexStock() {
  return request({
    url: "/pig/farm/indexStock",
    method: "get",
  });
}